﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Book_of_Shadow_Script
{
    class IllegalFormatException : Exception
    {
        private int pos;
        public IllegalFormatException(int c)
            : base(String.Format("string format error at {0}", c))
        {
            pos = c;
        }
        public IllegalFormatException(string s,int c)
            : base(String.Format("{0} 位置"+"{1}", s, c))
        {
            pos = c;
        }
    }
    class ByteLengthExceed : Exception
    {
    }
    class UncodedChar : Exception
    {
        private char ch;
        public UncodedChar(char ch)
            : base(String.Format("Uncoded char {0}", ch))
        {
        }
    }
}
